package com.leadingsoft.pwxk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.leadingsoft.pwxk.dto.DrainPositionDto;
import com.leadingsoft.pwxk.service.DrainBaseInfoService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 
 * @author ysh
 * @desc 获取排放口信息
 */
@Api(description = "获取排放口信息")
@RestController
@RequestMapping("api/drainBaseInfo")
public class DrainBaseInfoController {

	@Autowired
	DrainBaseInfoService drainBaseInfoService;

	@ApiOperation("获取各排放口地理位置信息")
	@GetMapping(path = "{dataid}")
	public DrainPositionDto getPosition(@PathVariable(value = "dataid") String dataId) {
		return drainBaseInfoService.getPosition(dataId);
	}
}
